﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using RAD.Modules.AD.Interfaces;
using RAD.Modules.AD.PresentationModels;
using RAD.Modules.AD.Interfaces;
using RAD.Modules.AD.PresentationModels;

namespace RAD.Modules.AD.Views
{
    /// <summary>
    /// Interaction logic for ADView.xaml
    /// </summary>
    public partial class ADView : UserControl, IADView
    {
        private ADPresentationModel _model;

        public ADView(ADPresentationModel model)
        {
            InitializeComponent();
            _model = model;
            base.DataContext = _model;
        }

        #region IADView Members

        public TreeView DomainTreeView
        {
            get { return _domainTreeView; }
        }

        public TextBlock CurrentComputerName
        {
            get { return _computerName; }
        }

        public ADPresentationModel Model
        {
            get { return _model; }
            set { _model = value; }
        }

        #endregion
    }
}
